﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ElectronicCommerce.Framework.ServiceModel.WCF.BindingMessage
{
    [Serializable]
    [XmlRoot("transport")]
    public class SerTransport
    {
        private SerClientCredentialType clientCredentialTypeField = SerClientCredentialType.Windows;

        private SerProxyCredentialType proxyCredentialTypeField = SerProxyCredentialType.None;

        private string realmField;

        [XmlAttribute("clientCredentialType")]
        public SerClientCredentialType ClientCredentialType
        {
            get
            {
                return clientCredentialTypeField;
            }
            set
            {
                clientCredentialTypeField = value;
            }
        }

        [XmlAttribute("proxyCredentialType")]
        public SerProxyCredentialType ProxyCredentialType
        {
            get
            {
                return proxyCredentialTypeField;
            }
            set
            {
                proxyCredentialTypeField = value;
            }
        }

        [XmlAttribute("realm")]
        public string Realm
        {
            get
            {
                return realmField;
            }
            set
            {
                realmField = value;
            }
        }

    }
}
